package com.rui.patterns.state.before;

/**
 * @author : [锐神NO.3]
 * @version : [v1.0]
 * @className : Client
 * @createTime : [2022/2/24 14:49]
 * @description : [描述该类的功能]
 */

public class Client {
    public static void main(String[] args) {
        //创建电梯对象
        Lift lift = new Lift();

        //设置当前电梯的状态
        lift.setState(ILift.OPENING_STATE);

        //开门
        lift.open();
        lift.close();
        lift.run();
        lift.stop();
    }
}
